package com.yuanren.em.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

@TableName("t_member_benefit")
public class MemberBenefit extends Model<MemberBenefit> {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    private String benefitName;
    
    private String benefitType;
    
    private String benefitValue;
    
    private String description;
    
    private String icon;
    
    private Boolean isActive;
    
    private Integer sortOrder;
    
    private Date createTime;
    
    private Date updateTime;

    public MemberBenefit() {}

    public MemberBenefit(String benefitName, String benefitType, String benefitValue, String description) {
        this.benefitName = benefitName;
        this.benefitType = benefitType;
        this.benefitValue = benefitValue;
        this.description = description;
        this.isActive = true;
        this.sortOrder = 0;
    }

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBenefitName() {
        return benefitName;
    }

    public void setBenefitName(String benefitName) {
        this.benefitName = benefitName;
    }

    public String getBenefitType() {
        return benefitType;
    }

    public void setBenefitType(String benefitType) {
        this.benefitType = benefitType;
    }

    public String getBenefitValue() {
        return benefitValue;
    }

    public void setBenefitValue(String benefitValue) {
        this.benefitValue = benefitValue;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Boolean getIsActive() {
        return isActive;
    }

    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "MemberBenefit{" +
                "id=" + id +
                ", benefitName='" + benefitName + '\'' +
                ", benefitType='" + benefitType + '\'' +
                ", benefitValue='" + benefitValue + '\'' +
                ", description='" + description + '\'' +
                ", icon='" + icon + '\'' +
                ", isActive=" + isActive +
                ", sortOrder=" + sortOrder +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
} 